package com.mexico.inloancash.utils;

import com.adjust.sdk.Adjust;
import com.adjust.sdk.AdjustEvent;

/**
 * Created by Eric at 2021/4/1
 */
public class IndiaAdjust_Helper {

    private IndiaAdjust_Helper() {

    }


    /**
     * 首次安装统计
     */
    public static void firstInstallStatistics() {
        AdjustEvent adjustEvent = new AdjustEvent("kn4e4o");
        adjustEvent.addCallbackParameter("member_token", MyPreferencesManager.getString("token", ""));
        adjustEvent.addCallbackParameter("gps_adid", MyPreferencesManager.getGoogleID());
        Adjust.trackEvent(adjustEvent);
    }


    /**
     * 首次放款
     */
    public static void firstLoan() {
        AdjustEvent adjustEvent = new AdjustEvent("bufnea");
        adjustEvent.addCallbackParameter("member_token", MyPreferencesManager.getString("token", ""));
        adjustEvent.addCallbackParameter("gps_adid", MyPreferencesManager.getGoogleID());
        Adjust.trackEvent(adjustEvent);
    }

    /**
     * 申请贷款
     */
    public static void startApplicationLoan() {
        AdjustEvent adjustEvent = new AdjustEvent("jkpzhr");
        adjustEvent.addCallbackParameter("member_token", MyPreferencesManager.getString("token", ""));
        adjustEvent.addCallbackParameter("gps_adid", MyPreferencesManager.getGoogleID());
        Adjust.trackEvent(adjustEvent);
    }

    /**
     * 完成申请贷款
     * 这里理解为 申请贷款后 如果成功并且放款 视为完成申请
     */
    public static void completeApplicationLoan() {
        AdjustEvent adjustEvent = new AdjustEvent("xw0zfe");
        adjustEvent.addCallbackParameter("member_token", MyPreferencesManager.getString("token", ""));
        adjustEvent.addCallbackParameter("gps_adid", MyPreferencesManager.getGoogleID());
        Adjust.trackEvent(adjustEvent);
    }


    /**
     * 首次注册
     */
    public static void firstRegister() {
        AdjustEvent adjustEvent = new AdjustEvent("7uzm5d");
        adjustEvent.addCallbackParameter("member_token", MyPreferencesManager.getString("token", ""));
        adjustEvent.addCallbackParameter("gps_adid", MyPreferencesManager.getGoogleID());
        Adjust.trackEvent(adjustEvent);
    }


}
